<template>
  <div class="use-fetch">useFetch</div>
</template>
<script setup lang="ts">
  import askService from "@/service/index";
  import type { IResultData } from "@/service/index";
  import { fetchHomeInfoData } from "@/service/home";
  // askService.get<IResultData<any>>("/homeInfo").then((res) => {
  //   console.log(res.data.value);
  // });

  // const { data } = await askService.get<IResultData<any>>("/homeInfo");
  // console.log(data.value?.data);

  const { data } = await fetchHomeInfoData();
  console.log(data.value?.data);
</script>
